from qiniu import Auth, put_file, etag
AccessKey='L4KBaBkhV52xMvErYgE6XbYDh57uy2qey2qppzRe'
SecretKey='bildAzQKbSmdtnoAe-dUNjeqM7JMqCWaoURqbaCz'

def qiniu_token():
    # 构建鉴权对象
    q = Auth(AccessKey, SecretKey)
    bucket ='hahaha2109'
    token = q.upload_token(bucket)
    return token